#include "edgedetection.h"

EdgeDetection::EdgeDetection()
{
    k_rows=3;
    k_cols=3;
    kernel=new double[k_rows*k_cols];
    kernel[0]=-1.0;
    kernel[1]=-1.0;
    kernel[2]=-1.0;
    kernel[3]=-1.0;
    kernel[4]=8.0;
    kernel[5]=-1.0;
    kernel[6]=-1.0;
    kernel[7]=-1.0;
    kernel[8]=-1.0;

}

EdgeDetection::~EdgeDetection(){
    delete [] kernel;
}
